<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="css/secondright1.css"/>
</head>
<body>
<div id="noticeDisplay">
    <div class="midbox_right">
        <div class="midbox_right1">
        <span style="font-size: 20px; margin-left: 1%">
            <strong th:text="${catalog.cname}">组织机构</strong>
        </span>
            <p style="font-size: 16px; margin-right: 1%">
                <a th:href="@{/index}"> 网站首页 > </a>
                <a th:href="@{'/display/'+${notice.cid}}"> 返回上一级 </a>
            </p>
        </div>
        <div class="midbox_right2"><p th:text="${notice.ntitle}"></p></div>
        <div class="midbox_right3">
            <div class="midbox_right3_div">
                <span>信息来源：</span>
                <p th:text="${notice.nuser}">人事处</p>
            </div>
            <div class="midbox_right3_div">
                <span>发布日期：</span>
                <p th:text="${notice.ndate}">2019-5-12</p>
            </div>
            <div class="midbox_right3_div">
                <span>浏览量：</span>
                <p th:text="${notice.nbrowses}">7014</p>
            </div>
        </div>
        <div>
            <hr style=" border:none;border-top:2px dotted gray; margin-top: 0;"/>
        </div>

        <!-- notice展示start -->
        <div class="midbox_right4" th:utext="${notice.ncontent}"></div>
        <!-- notice展示end -->

        <!-- notice中的附件列表start -->
        <div class="layui-input-block" style="margin-left: 5%;">
            <table class="layui-table" th:if="${not fileList.isEmpty()}" style="width: 60%;">
                <colgroup>
                    <col width="300">
                    <col width="100">
                </colgroup>
                <thead>
                <tr>
                    <th>附件名称</th>
                    <th style="text-align: center;">操作</th>
                </tr>
                </thead>
                <tbody th:each="file:${fileList}">
                <tr>
                    <td><a th:href="${file.getFilePath()}" th:text="${file.getFileName()}"></a></td>
                    <td style="text-align: center;">
                        <a th:href="${file.getFilePath()}">
                        <button class="layui-btn layui-btn-danger layui-btn-xs deleteBtn"
                                style="background-color: #009688">下载
                        </button>
                        </a>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
        <!-- notice中的附件列表end -->
    </div>
</div>
</body>
</html>
